package com.markhsiu.bytee;

import java.util.BitSet;

/**
 * 海量数据存储
 * http://blog.csdn.net/lushuaiyin/article/details/7546144
 * @author Mark Hsiu
 *
 */
public class MainTestThree {

    /**  
     * @param args  
     */  
    public static void main(String[] args) {  
        BitSet bm=new BitSet();  
        System.out.println(bm.isEmpty()+"--"+bm.size());  
        bm.set(0);  
        System.out.println(bm.isEmpty()+"--"+bm.size());  
        bm.set(1);  
        System.out.println(bm.isEmpty()+"--"+bm.size());  
        System.out.println(bm.get(65));  
        System.out.println(bm.isEmpty()+"--"+bm.size());  
        bm.set(65);  
        System.out.println(bm.get(65));  
        System.out.println(bm.isEmpty()+"--"+bm.size());  
        bm.set(1023);  
        System.out.println(bm.isEmpty()+"--"+bm.size()); 
    }  
  
}
